package com.itbaiwei.unitday01.view;

import android.annotation.SuppressLint;
import android.app.Activity;
import android.os.Bundle;
import android.widget.ArrayAdapter;
import android.widget.Button;
import android.widget.ListView;
import android.widget.TextView;

import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;

import com.itbaiwei.unitday01.R;

import java.util.ArrayList;

/**
 * Class: MainActiviy5
 * Description:
 * Author: haijun.xu
 * Date: 2025/5/30 11:45
 */
public class MainActiviy5 extends AppCompatActivity {
    @SuppressLint("MissingInflatedId")
    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main5);
        ListView listView = findViewById(R.id.demo_lv);
        ArrayList<String> list = new ArrayList<>();
        for (int i=0;i<40;i++){
            list.add("测试项目是："+i);
        }
        listView.setAdapter(new ArrayAdapter<String>(this, android.R.layout.simple_list_item_1, list));

        Button btn;

        TextView tv;



    }





}
